package com.openitems.ws;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;

import com.openitems.data.pojo.Project;

@Path("/project")
public class ProjectFacadeREST extends AbstractREST<Project> {

  public ProjectFacadeREST() {
		super(Project.class);
	}
  
  	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	public String AddProject(Project project) {
	  super.upsert(project);
	  return "Success";
	}
} 
